<!-- 头像组件 -->
<script lang="ts" setup>
withDefaults(
  defineProps<{
    size?: string | number;
    src?: string;
  }>(),
  {
    size: 50,
  },
);
</script>

<template>
  <n-image
    v-if="src"
    :height="size"
    :preview-disabled="true"
    :src="src"
    :width="size"
    alt="logo"
    class="ml-5"
  />
</template>

<style scoped></style>
